package com.aizuda.boot.modules.flw.entity.vo;

import com.aizuda.boot.modules.flw.entity.FlwProcessApproval;
import com.aizuda.bpm.engine.model.NodeModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 节点渲染信息
 */
@Schema(description = "节点渲染信息")
@Data
public class NodeRendering {

    @Schema(description = "流程审批记录")
    private List<FlwProcessApproval> processApprovals;

    @Schema(description = "后续节点模型列表")
    List<NodeModel> nodeModels;


    @Schema(description = "请求参数对象")
    @Data
    @Builder
    public static class Req {
        @Schema(description = "流程实例ID")
        private Long instanceId;

        @Schema(description = "流程任务ID")
        private Long taskId;

        @Schema(description = "表单数据")
        private Map<String, Object> formData;

    }
}
